package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyContent;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.StrategyDetailQueryObject;
import com.github.pagehelper.PageInfo;

public interface IStrategyDetailService {
    PageInfo queryForList(StrategyDetailQueryObject qo);

    void update(StrategyDetail detail);

    void save(StrategyDetail detail);

    /**
     * 根据id查询文章内容
     * @param id
     * @return
     */
    StrategyContent getContentById(Long id);

    /**
     * 根据id查询攻略文章信息
     * @param id
     * @return
     */
    StrategyDetail getByDetailId(Long id);
}
